package com.yl.chainStore.mapper.pay

import com.yl.chainStore.entity.pay.PayCustomerMoneyFlow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yl.chainStore.common.enums.TypeEnum
import com.yl.chainStore.pojo.vo.pay.PayCustomerMoneyFlowSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 * 用户余额变动记录 Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-07-30
 */
@Mapper
interface PayCustomerMoneyFlowMapper : BaseMapper<PayCustomerMoneyFlow>{

	/**
	 * 余额变动记录列表
	 */
	fun getList(@Param("vo")vo: PayCustomerMoneyFlowSelectVo):List<PayCustomerMoneyFlow>

	fun selectCustomerPaySumMoney(@Param("companyId")companyId:Long,
	                              @Param("useType")useType: TypeEnum,
	                              @Param("customerId")customerId:Long?,
	                              @Param("subCompanyId")subCompanyId:Long?,
	):Long
}
